<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Aestate: aestate.work.Config.MySqlConfig Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Aestate
   &#160;<span id="projectnumber">1.0.5</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceaestate.html">aestate</a></li><li class="navelem"><a class="el" href="namespaceaestate_1_1work.html">work</a></li><li class="navelem"><a class="el" href="namespaceaestate_1_1work_1_1_config.html">Config</a></li><li class="navelem"><a class="el" href="classaestate_1_1work_1_1_config_1_1_my_sql_config.html">MySqlConfig</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="classaestate_1_1work_1_1_config_1_1_my_sql_config-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">aestate.work.Config.MySqlConfig Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for aestate.work.Config.MySqlConfig:</div>
<div class="dyncontent">
<div class="center"><img src="classaestate_1_1work_1_1_config_1_1_my_sql_config__inherit__graph.png" border="0" usemap="#aestate_8work_8_config_8_my_sql_config_inherit__map" alt="Inheritance graph"/></div>
<map name="aestate_8work_8_config_8_my_sql_config_inherit__map" id="aestate_8work_8_config_8_my_sql_config_inherit__map">
<area shape="rect" title=" " alt="" coords="5,131,201,355"/>
<area shape="rect" title=" " alt="" coords="36,5,171,83"/>
</map>
</div>
<div class="dynheader">
Collaboration diagram for aestate.work.Config.MySqlConfig:</div>
<div class="dyncontent">
<div class="center"><img src="classaestate_1_1work_1_1_config_1_1_my_sql_config__coll__graph.png" border="0" usemap="#aestate_8work_8_config_8_my_sql_config_coll__map" alt="Collaboration graph"/></div>
<map name="aestate_8work_8_config_8_my_sql_config_coll__map" id="aestate_8work_8_config_8_my_sql_config_coll__map">
<area shape="rect" title=" " alt="" coords="5,131,201,355"/>
<area shape="rect" title=" " alt="" coords="36,5,171,83"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ac2aad8703e93fb97e3f2c7a6e729e338"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaestate_1_1work_1_1_config_1_1_my_sql_config.html#ac2aad8703e93fb97e3f2c7a6e729e338">__init__</a> (self, db_type, *args, **kwargs)</td></tr>
<tr class="separator:ac2aad8703e93fb97e3f2c7a6e729e338"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adf0b32cbe7426f076877e93ff07c6bf4"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaestate_1_1work_1_1_config_1_1_my_sql_config.html#adf0b32cbe7426f076877e93ff07c6bf4">get</a> (self)</td></tr>
<tr class="separator:adf0b32cbe7426f076877e93ff07c6bf4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace71bb62bd9b8110cde0b7d449105b5a"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaestate_1_1work_1_1_config_1_1_my_sql_config.html#ace71bb62bd9b8110cde0b7d449105b5a">set_field</a> (self, key, value)</td></tr>
<tr class="separator:ace71bb62bd9b8110cde0b7d449105b5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a38ae2c3ffaa78c1bfb83b7852474c941"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaestate_1_1work_1_1_config_1_1_my_sql_config.html#a38ae2c3ffaa78c1bfb83b7852474c941">get_field</a> (self, name)</td></tr>
<tr class="separator:a38ae2c3ffaa78c1bfb83b7852474c941"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5954d515ffcf5db00d4b1fb7d3b71d07"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaestate_1_1work_1_1_config_1_1_my_sql_config.html#a5954d515ffcf5db00d4b1fb7d3b71d07">get_dict</a> (self)</td></tr>
<tr class="separator:a5954d515ffcf5db00d4b1fb7d3b71d07"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeae2b0f008600b08d307e25bf67f2b2d"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaestate_1_1work_1_1_config_1_1_my_sql_config.html#aeae2b0f008600b08d307e25bf67f2b2d">get_json</a> (self, bf=False)</td></tr>
<tr class="separator:aeae2b0f008600b08d307e25bf67f2b2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a59f995ededdf7f34945d89eca1d03cf3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaestate_1_1work_1_1_config_1_1_my_sql_config.html#a59f995ededdf7f34945d89eca1d03cf3">creator</a></td></tr>
<tr class="separator:a59f995ededdf7f34945d89eca1d03cf3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac169847b69705ff60556a946342c44f6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaestate_1_1work_1_1_config_1_1_my_sql_config.html#ac169847b69705ff60556a946342c44f6">opera</a></td></tr>
<tr class="separator:ac169847b69705ff60556a946342c44f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a118bfdc177433d3bc0e6511816c5394a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaestate_1_1work_1_1_config_1_1_my_sql_config.html#a118bfdc177433d3bc0e6511816c5394a">sqlFields</a></td></tr>
<tr class="separator:a118bfdc177433d3bc0e6511816c5394a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8888601b650ccbd87324b7c6e77fe33"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaestate_1_1work_1_1_config_1_1_my_sql_config.html#ac8888601b650ccbd87324b7c6e77fe33">kw</a></td></tr>
<tr class="separator:ac8888601b650ccbd87324b7c6e77fe33"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7487d2824eda203c885068b8a7eb072c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaestate_1_1work_1_1_config_1_1_my_sql_config.html#a7487d2824eda203c885068b8a7eb072c">adapter</a></td></tr>
<tr class="separator:a7487d2824eda203c885068b8a7eb072c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><pre class="fragment">配置类:
    默认必须携带操作数据库所需的参数:
        - host:数据库地址
        - port:端口
        - database:数据库名
        - user:用户名
        - password:密码
        - charset:编码默认utf8
        - conf:其他配置
</pre> 
<p class="definition">Definition at line <a class="el" href="_config_8py_source.html#l00015">15</a> of file <a class="el" href="_config_8py_source.html">Config.py</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ac2aad8703e93fb97e3f2c7a6e729e338"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac2aad8703e93fb97e3f2c7a6e729e338">&#9670;&nbsp;</a></span>__init__()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def aestate.work.Config.MySqlConfig.__init__ </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>db_type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">*&#160;</td>
          <td class="paramname"><em>args</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">**&#160;</td>
          <td class="paramname"><em>kwargs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<pre class="fragment">可用于mysql的示例参数
:param host:数据库地址
:param port:端口
:param database:数据库名
:param user:用户名
:param password:密码
:param charset:编码默认utf8
:param creator:创建者
</pre> 
<p class="definition">Definition at line <a class="el" href="_config_8py_source.html#l00028">28</a> of file <a class="el" href="_config_8py_source.html">Config.py</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="adf0b32cbe7426f076877e93ff07c6bf4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adf0b32cbe7426f076877e93ff07c6bf4">&#9670;&nbsp;</a></span>get()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def aestate.work.Config.MySqlConfig.get </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<pre class="fragment">获取当前配置类
:return:
</pre> 
<p class="definition">Definition at line <a class="el" href="_config_8py_source.html#l00052">52</a> of file <a class="el" href="_config_8py_source.html">Config.py</a>.</p>

</div>
</div>
<a id="a5954d515ffcf5db00d4b1fb7d3b71d07"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5954d515ffcf5db00d4b1fb7d3b71d07">&#9670;&nbsp;</a></span>get_dict()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def aestate.work.Config.MySqlConfig.get_dict </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<pre class="fragment">将配置类转转字典
:return:
</pre> 
<p class="definition">Definition at line <a class="el" href="_config_8py_source.html#l00078">78</a> of file <a class="el" href="_config_8py_source.html">Config.py</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classaestate_1_1work_1_1_config_1_1_my_sql_config_a5954d515ffcf5db00d4b1fb7d3b71d07_icgraph.png" border="0" usemap="#classaestate_1_1work_1_1_config_1_1_my_sql_config_a5954d515ffcf5db00d4b1fb7d3b71d07_icgraph" alt=""/></div>
<map name="classaestate_1_1work_1_1_config_1_1_my_sql_config_a5954d515ffcf5db00d4b1fb7d3b71d07_icgraph" id="classaestate_1_1work_1_1_config_1_1_my_sql_config_a5954d515ffcf5db00d4b1fb7d3b71d07_icgraph">
<area shape="rect" title=" " alt="" coords="249,5,445,47"/>
<area shape="rect" href="classaestate_1_1work_1_1_config_1_1_my_sql_config.html#aeae2b0f008600b08d307e25bf67f2b2d" title=" " alt="" coords="5,5,201,47"/>
</map>
</div>

</div>
</div>
<a id="a38ae2c3ffaa78c1bfb83b7852474c941"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a38ae2c3ffaa78c1bfb83b7852474c941">&#9670;&nbsp;</a></span>get_field()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def aestate.work.Config.MySqlConfig.get_field </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>name</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<pre class="fragment">获取字段
:param name:
:return:
</pre> 
<p class="definition">Definition at line <a class="el" href="_config_8py_source.html#l00068">68</a> of file <a class="el" href="_config_8py_source.html">Config.py</a>.</p>

</div>
</div>
<a id="aeae2b0f008600b08d307e25bf67f2b2d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeae2b0f008600b08d307e25bf67f2b2d">&#9670;&nbsp;</a></span>get_json()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def aestate.work.Config.MySqlConfig.get_json </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>bf</em> = <code>False</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<pre class="fragment">将配置类转json
:return:
</pre> 
<p class="definition">Definition at line <a class="el" href="_config_8py_source.html#l00085">85</a> of file <a class="el" href="_config_8py_source.html">Config.py</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classaestate_1_1work_1_1_config_1_1_my_sql_config_aeae2b0f008600b08d307e25bf67f2b2d_cgraph.png" border="0" usemap="#classaestate_1_1work_1_1_config_1_1_my_sql_config_aeae2b0f008600b08d307e25bf67f2b2d_cgraph" alt=""/></div>
<map name="classaestate_1_1work_1_1_config_1_1_my_sql_config_aeae2b0f008600b08d307e25bf67f2b2d_cgraph" id="classaestate_1_1work_1_1_config_1_1_my_sql_config_aeae2b0f008600b08d307e25bf67f2b2d_cgraph">
<area shape="rect" title=" " alt="" coords="5,5,201,47"/>
<area shape="rect" href="classaestate_1_1work_1_1_config_1_1_my_sql_config.html#a5954d515ffcf5db00d4b1fb7d3b71d07" title=" " alt="" coords="249,5,445,47"/>
</map>
</div>

</div>
</div>
<a id="ace71bb62bd9b8110cde0b7d449105b5a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ace71bb62bd9b8110cde0b7d449105b5a">&#9670;&nbsp;</a></span>set_field()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def aestate.work.Config.MySqlConfig.set_field </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<pre class="fragment">设置字段
:param key:键
:param value:值
:return:
</pre> 
<p class="definition">Definition at line <a class="el" href="_config_8py_source.html#l00059">59</a> of file <a class="el" href="_config_8py_source.html">Config.py</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a7487d2824eda203c885068b8a7eb072c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7487d2824eda203c885068b8a7eb072c">&#9670;&nbsp;</a></span>adapter</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">aestate.work.Config.MySqlConfig.adapter</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_config_8py_source.html#l00049">49</a> of file <a class="el" href="_config_8py_source.html">Config.py</a>.</p>

</div>
</div>
<a id="a59f995ededdf7f34945d89eca1d03cf3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a59f995ededdf7f34945d89eca1d03cf3">&#9670;&nbsp;</a></span>creator</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">aestate.work.Config.MySqlConfig.creator</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_config_8py_source.html#l00043">43</a> of file <a class="el" href="_config_8py_source.html">Config.py</a>.</p>

</div>
</div>
<a id="ac8888601b650ccbd87324b7c6e77fe33"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac8888601b650ccbd87324b7c6e77fe33">&#9670;&nbsp;</a></span>kw</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">aestate.work.Config.MySqlConfig.kw</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_config_8py_source.html#l00046">46</a> of file <a class="el" href="_config_8py_source.html">Config.py</a>.</p>

</div>
</div>
<a id="ac169847b69705ff60556a946342c44f6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac169847b69705ff60556a946342c44f6">&#9670;&nbsp;</a></span>opera</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">aestate.work.Config.MySqlConfig.opera</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_config_8py_source.html#l00044">44</a> of file <a class="el" href="_config_8py_source.html">Config.py</a>.</p>

</div>
</div>
<a id="a118bfdc177433d3bc0e6511816c5394a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a118bfdc177433d3bc0e6511816c5394a">&#9670;&nbsp;</a></span>sqlFields</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">aestate.work.Config.MySqlConfig.sqlFields</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_config_8py_source.html#l00045">45</a> of file <a class="el" href="_config_8py_source.html">Config.py</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>aestate/work/<a class="el" href="_config_8py_source.html">Config.py</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
